The Dreamweaver JavaScript API > Selection functions > dom.source.getSelection() |
![]() ![]() ![]() |
Description
Gets the selection in the current document, expressed as character offsets into the document's Code view.
Arguments
None.
Returns
A pair of integers representing offsets from the beginning of the source document. The first integer is the beginning of the selection, and the second is the end of the selection. If the two numbers are equal, the selection is an IP. If there is no selection in the source, both numbers are -1.
![]() ![]() ![]() |